﻿using System;
using SqlSugar;

namespace Ioacp.Syka
{
    [SugarTable("Raw_Recognize_Record", TableDescription = "唯一性检测信息表")]
    public class UniqueDetectInfo
    {
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true,
            ColumnDescription = "编号")]
        public long Id { get; set; }

        [SugarColumn(ColumnName = "Person_Id",
            Length = 36, ColumnDataType = "varchar", ColumnDescription = "人员Id")]
        public string PersonId { get; set; }

        [SugarColumn(ColumnName = "Name",
            Length = 20, ColumnDataType = "varchar", ColumnDescription = "人员名字")]
        public string PersonName { get; set; }

        [SugarColumn(ColumnName = "Worker_SN",
            Length = 20, ColumnDataType = "varchar", ColumnDescription = "工号")]
        public string WorkerSN { get; set; }

        [SugarColumn(ColumnName = "Id_Number",
            Length = 50, ColumnDataType = "varchar", ColumnDescription = "身份证号")]
        public string IdCard { get; set; }

        [SugarColumn(ColumnName = "Position_Card",
            Length = 50, ColumnDataType = "varchar", ColumnDescription = "定位卡号")]
        public string PositionCard { get; set; }

        [SugarColumn(ColumnName = "Recognize_Time",
            ColumnDescription = "识别记录时间")]
        public DateTime RecognizeTime { get; set; }

        [SugarColumn(ColumnName = "Attend_Type",
            ColumnDescription = "场景类型 0 未知 1 签到 2 签退")]
        public Int16 AttendType { get; set; }

        [SugarColumn(ColumnName = "Device_SN",
            Length = 20, ColumnDataType = "varchar", ColumnDescription = "设备 SN")]
        public string DeviceSN { get; set; }

        [SugarColumn(ColumnName = "Occasion_Id",
            ColumnDescription = "场景 Id 1 地面 2 井口 3 井下")]
        public Int16 OccasionId { get; set; }

        [SugarColumn(ColumnName = "Attendance_Flag",
            ColumnDescription = "是否有效考勤 0 无效 1 有效")]
        public Int16 AttendanceFlag { get; set; }
    }
}